package com.builder.pattern.service;

import com.builder.pattern.service.impl.ChickenBurger;
import com.builder.pattern.service.impl.Coke;
import com.builder.pattern.service.impl.Pepsi;
import com.builder.pattern.service.impl.VegBurger;

/**
 * @author chenchen
 * @description
 * @date 2023/11/17 16:54
 */
public class MealBuilder {
    public Meal prepareVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal prepareNonVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
